package com.jthinker.dao;

import java.util.List;
import java.util.Map;

/**
 * User: Gang Chen
 * Date: 2015/4/22 22:13
 */
public interface CategoryDao
{
    Long findBySlug(String slug);

    void add(Map<String, Object> record) throws Exception;

    List<Map<String, Object>> findAll();

    void delete(String id) throws Exception;

    boolean isSlugUnique(String slug);
}
